# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=snmpenum
pkgver=1.7
pkgrel=9
pkgdesc='An snmp enumerator.'
url='http://www.filip.waeytens.easynet.be/'
groups=('blackarch' 'blackarch-scanner')
license=('GPL')
arch=('any')
depends=('perl' 'perl-net-snmp')
source=('https://dl.packetstormsecurity.net/UNIX/scanners/snmpenum.zip')
sha512sums=('7ad97c118872228a3243398b9ebde2a20cb1a2823669707479d3dd0c44ab8ffd650e232bee8ec28c6b5de6dd68fcc05936d382de6239381608c2fe423781c11b')

prepare() {
  sed -ie "s|^#! /usr/local/bin/perl|#!/usr/bin/perl|" "$pkgname.pl"
}

package() {
  install -Dm 755 "$pkgname.pl" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" README.txt cisco.txt \
    linux.txt windows.txt
}

